Interaction method and apparatus, and electronic device

ABSTRACT

An interaction method, an interaction apparatus, and an electronic device are provided. The method includes: determining, in response to detecting a predefined size transformation operation, target transformation information of a target video based on whether a current size of the target video is a preset anchor point size, where the target video is a video played in a video play area; and transforming the target video based on the target transformation information, and playing the transformed target video.

CROSS REFERENCE TO RELATED APPLICATION

The present application is a continuation of International PatentApplication No. PCT/CN2021/109648, filed on Jul. 30, 2021, which claimspriority to Chinese Patent Application No. 202010764798.2, titled“INTERACTION METHOD AND APPARATUS, AND ELECTRONIC DEVICE”, filed on Jul.31, 2020, both of which are incorporated herein by reference in theirentireties.

TECHNICAL FIELD

The present disclosure relates to the field of computer technology, andin particular, to an interaction method, an interaction apparatus, andan electronic device.

BACKGROUND

With the development of computer technology, people may use computers toimplement various functions. For example, people may use terminaldevices to watch videos. When watching a video, it is sometimesnecessary to adjust a display size of a video picture. How to adjust thedisplay size of the video picture is one of the problems that need to besolved at present.

SUMMARY

This summary is provided to introduce concepts in a simplified form, theconcepts are described in detail in the detailed description of theembodiments below. This summary is not intended to identify key featuresor essential features of the claimed technical solution, nor is itintended to be used to limit the scope of the claimed technicalsolution.

In a first aspect, an interaction method is provided according to anembodiment of the disclosure. The method includes: determining, inresponse to detecting a predefined size transformation operation, targettransformation information of a target video based on whether a currentsize of the target video is a preset anchor point size, where the targetvideo is a video played in a video play area; and transforming thetarget video based on the target transformation information, and playingthe transformed target video.

In a second aspect, a video transformation method is provided accordingto an embodiment of the disclosure. The method includes: packaging afirst layer into a second layer, where a target video in the secondlayer has the same play progress as a target video in the first layer,and a layer corresponding to a player is the first layer; andtransforming the target video in the second layer based on a predefinedtransformation operation.

In a third aspect, an interaction apparatus is provided according to anembodiment of the disclosure. The apparatus includes: a determining unitconfigured to determine, in response to detecting a predefined sizetransformation operation, target transformation information of a targetvideo based on whether a current size of the target video is a presetanchor point size, where the target video is a video played in a videoplay area; and a transforming unit configured to transform the targetvideo based on the target transformation information, and play thetransformed target video.

In a fourth aspect, an interaction apparatus is provided according to anembodiment of the disclosure. The apparatus is applied to a firstelectronic device, the apparatus includes: a packaging module configuredto package a first layer into a second layer, where a target video inthe second layer has the same play progress as a target video in thefirst layer, and a layer corresponding to a player is the first layer;and a transforming module configured to transform the target video inthe second layer based on a predefined transformation operation.

In a fifth aspect, an electronic device is provided according to anembodiment of the present disclosure. The electronic device includes oneor more processors and a storage apparatus storing one or more programs.The one or more programs, when executed by the one or more processors,cause the one or more processors to perform the interaction methoddescribed in the above first aspect or the video transformation methoddescribed in the above second aspect.

In a sixth aspect, a computer-readable medium is provided according toan embodiment of the present disclosure. The computer-readable mediumstores a computer program. The computer program, when executed by aprocessor, causes the processor to perform the interaction methoddescribed in the above first aspect or the video transformation methoddescribed in the above second aspect.

According to the interaction method, the interaction apparatus and theelectronic device provided by the embodiments of the present disclosure,in response to detecting the predefined size transformation operation,the target transformation information of the target video may bedetermined based on whether the current size of the target video is thepreset anchor point size. Therefore, in the size transformationoperation, the user's requirement for scaling the preset anchor pointsize can be compatible, and the target video can be quickly transformedto a size commonly used by the user, thereby reducing user operationsand improving an interaction efficiency. In addition, the target videopicture in the video play area can meet the requirement of the user toobtain information, and an information acquisition efficiency of theuser can be improved.

BRIEF DESCRIPTION OF THE DRAWINGS

With reference to the drawings and specific embodiments below, the aboveand other features, advantages and aspects of embodiments of the presentdisclosure become more apparent. Throughout the drawings, the same orsimilar reference numerals indicate the same or similar elements. Itshould be understood that the drawings are schematic, and components andelements are unnecessarily drawn in scale.

FIG. 1 is a flowchart of an interaction method according to anembodiment of the present disclosure;

FIG. 2 is a schematic diagram of an application scenario of theinteraction method according to the present disclosure;

FIG. 3 is an optional implementation of step 101 of the interactionmethod according to the present disclosure;

FIG. 4 is a flowchart of an interaction method according to anotherembodiment of the present disclosure;

FIG. 5 is a flowchart of a video transformation method according to anembodiment of the present disclosure;

FIG. 6 is a schematic structural diagram of an interaction apparatusaccording to an embodiment of the present disclosure;

FIG. 7 is a schematic structural diagram of an interaction apparatusaccording to another embodiment of the present disclosure;

FIG. 8 is an exemplary system architecture to which an interactionmethod according to an embodiment of the present disclosure may beapplied; and

FIG. 9 a schematic diagram of a basic structure of an electronic deviceaccording to an embodiment of the present disclosure.

DETAILED DESCRIPTION OF THE EMBODIMENTS

Embodiments of the present disclosure are described in detailhereinafter with reference to the drawings. Although the drawings showsome embodiments of the present disclosure, it should be understood thatthe present disclosure may be implemented by various embodiments and arenot limited to be implemented by the embodiments clarified herein. Theembodiments described in the present disclosure are intended toillustrate the present disclosure thoroughly and completely. It shouldbe understood that the drawings and the embodiments are only schematic,and are not intended to limit the protection scope of the presentdisclosure.

It should be understood that, steps described in the method embodimentsof the present disclosure may be performed in different orders and/orperformed in parallel. In addition, the method embodiments may includeadditional steps and/or the shown steps may be omitted. The scope of thepresent disclosure is not limited thereto.

Term “including” and variations thereof adopted herein is inclusive,that is “including but not limited to”. The term “based on” means “atleast partially based on”. The term “an embodiment” means “at least oneembodiment”, and the term “another embodiment” means “at least oneanother embodiment”. The term “some embodiments” means “at least someembodiments”. Definitions of other terms are provided below.

It should be noted that, the terms “first” “second” and so on mentionedin the present disclosure are only used to distinguish differentapparatuses, modules or units, rather than limit an order of functionsperformed by the apparatus, module or unit or limit interdependence.

It should be noted that, the terms “a” and “multiple” mentioned in thepresent disclosure are schematic rather than restrictive, and should beunderstood as “one or more” by those skilled in the art, otherwiseexplicitly illustrated in the context.

Names of messages or information interacted between multiple apparatusesin the embodiments of the present disclosure are illustrative ratherthan limit the scope of the message or information.

Reference is made to FIG. 1 , which is a flowchart of an interactionmethod according to an embodiment of the present disclosure. Theinteraction method is applied to a terminal device. As shown in FIG. 1 ,the interaction method includes the following steps 101 and 102.

Step 101, determine, in response to detecting a predefined sizetransformation operation, target transformation information of a targetvideo based on whether a current size of the target video is a presetanchor point size.

In this embodiment, a first execution body (for example, a terminaldevice) of the interaction method may, in response to detecting thepredefined size transformation operation, determine the targettransformation information of the target video based on whether thecurrent size of the target video is the preset anchor point size.

In this embodiment, the above-mentioned predefined size transformationoperation may be a predefined operation, and the predefined operationmay be used to perform size transformation on an image. The specificmanner of the predefined transformation operation may be set accordingto the actual application scenario, which is not limited here.

In this embodiment, an implementation location of the above-mentionedpredefined transformation operation may be in the video play area, ormay be an area outside the video play area. The predefinedtransformation operation may also be implemented through voice control.

As an example, the above-mentioned predefined size transformationoperation may include a two-finger operation. The two-finger operationmay be visually understood as an operation performed by two fingers.Apparently, during specific operations, the user may use any part tosimulate an effect of two fingers, to perform the two-finger operation.For example, increasing a distance between two fingers may be used as anenlarging operation; reducing the distance between two fingers may beused as a narrowing operation. In addition, the two fingers movingtogether with the distance between the two fingers remaining unchangedmay be used as a moving operation, the moving operation can change theposition of the target video, and not change the size of the targetvideo.

In some application scenarios, one size transformation operation may bea process from a start operation to a release operation of the user. Itcan be understood that in one size transformation operation, one or morespecific transformation operations may be implemented. For example, onesize transformation operation may include an enlarging operation and anarrowing operation.

As an example, in a process of starting the size transformationoperation, the user may first enlarge the target video, and then narrowthe target video in a process of not releasing the size transformationoperation. In this case, the above size transformation operation mayinclude an enlarging operation type and a narrowing operation type. Forexample, the target transformation information may be determined basedon the operation type first identified on the current video picture andwhether a size of the current picture is the preset anchor point size.For example, in some embodiments, the current video picture is of anoriginal video size, and an enlarging operation is detected on thecurrent video picture, regardless of whether the operation has beenreleased, the current video picture may be adjusted to a full-screensize.

In some embodiments, the operation type of the size transformationoperation may be determined based on a vector between an operationposition where the user starts the operation and an operation positionwhere the user releases the operation. In other words, the user'soperation trajectory in a process from start of the operation to releaseof the operation may not be used as a basis for determining theoperation type.

As an example, the user may resize the target video. The current size ofthe target video is A, and the user may firstly enlarge the target videoand then narrow target video to size B, where B is smaller than A. In aprocess of the user firstly enlarging the target video and thennarrowing target video, the picture of the target video may be firstlyenlarged and then be narrowed following the user's operation. When theuser releases this operation, it may be determined that the operationtype of this operation is a narrowing operation. Here, the target videois a video played in a video play area.

Here, the current size of the target video may be a size of the targetvideo when the size transformation operation starts.

In this embodiment, the size transformation may include enlarging thesize of the video.

In this embodiment, the size transformation may include narrowing thesize of the video.

In some embodiments, translation may include moving the video picture inthe video play area. Here, the preset anchor point size may be a presetcommon size. It should be noted that the size of the video may becontinuously changed. The expression of the preset anchor point sizesome size may visually represent that some sizes in continuouslychanging sizes may be used as a fixed point for representing the commonvideo size.

In some embodiments, the preset anchor point size may include, but isnot limited to, at least one of an original image size and a full-screenimage size. The preset anchor point size comprises at least one presetsize.

Here, the above-mentioned original image size may be an original size ofa video frame in the target video displayed on the terminal device.

Here, the full-screen image size may be the size of the target video ina max-screen play state on the terminal device. The max-screen playstate, also known as a full-screen play state, usually refers to a statethat the display size is larger than the original image size and can bemaximized in the preset display area, for example, it may be a statewhere the video picture fills the video play area.

Here, the target transformation information of the target video may beinformation for transforming the target video. As an example, the targettransformation information may indicate a transformation manner. Thetarget transformation information corresponding to a free-scaling modemay be understood as transforming the current video size according to ascale of the user operation. As an example, the target transformationinformation may include, but is not limited to, at least one of a targettransformation scale, a target transformation size.

Here, the target transformation scale may indicate a scale oftransforming the current size, for example, transforming to twice thecurrent size.

Here, the target transformation size may indicate a size to which thetarget video is expected to be transformed.

It should be noted that the size in this disclosure may be an absolutesize or a relative size. In some application scenarios, the size (suchas the anchor point size, the target video size) may also vary dependingon the model. As an example, if a size of the original image is taken asthe numerator, a ratio of other sizes to the size of the original image(i.e., the relative size) may also be referred to as the size in thisdisclosure.

Step 102, transform the target video based on the target transformationinformation, and play the transformed target video.

In this embodiment, the above-mentioned execution body may transform thetarget video based on the target transformation information, and playthe transformed target video.

Here, the transformed target video may be played in the video play area.

In some application scenarios, a size of the video play area may change.For example, the size of the video play area may be a full screen sizeor a three-quarter screen size. In other words, the size of the videoplay area may switch between at least two sizes.

As an example, reference is made to FIG. 2 , the video play area 201 isa rectangle, and the target video picture 202 is also a rectangle. Itcan be understood that the horizontal side of the rectangle in FIG. 2may be referred to as the length of the rectangle, the vertical side ofthe rectangle is referred to as the width of the rectangle. The targetvideo picture may be understood as the target video displayed in thevideo play area.

It should be noted that, in FIG. 2 , for the convenience ofillustration, the image of the target video picture 202 is set to bemuch smaller than the image of the video play area 201.

In practical application scenarios, if the length of the target video isless than the length of the video play area and the width of the targetvideo is less than the width of the video play area, the size of thetarget video picture may be set to be the same as the size of the targetvideo.

In practical application scenarios, if the length of the target video isgreater than the length of the video play area or the width of thetarget video is greater than the width of the video play area, the sizeof the target video image may be set to be the same as the size of thevideo play area. In other words, the target video picture is part of thevideo frame of the target video.

It should be noted that, according to the interaction method provided bythe embodiments of the present disclosure, in response to detecting thepredefined size transformation operation, the target transformationinformation of the target video may be determined based on whether thecurrent size of the target video is the preset anchor point size.Therefore, in the size transformation operation, the user's requirementfor scaling the preset anchor point size can be compatible, and thetarget video can be quickly transformed to a size commonly used by theuser, thereby reducing user operations and improving an interactionefficiency. In addition, the target video picture in the video play areacan meet the requirement of the user to obtain information, and aninformation acquisition efficiency of the user can be improved.

In some embodiments, the above method may include: moving, in responseto detecting a predefined moving operation and in response todetermining that the current size of the target video is greater than asize of the video play area, the target video in the video play area.

Here, the above predefined moving operation may be used for translatingthe target video. The specific implementation manner of the abovepredefined moving operation may be set according to an actualapplication scenario, which is not limited here.

As an example, the above predefined moving operation may be a draggingoperation, and the number of triggering points between the human bodyand the screen when the drag operation is performed may not be limited.As an example, the above predefined moving operation may be asingle-finger dragging operation, a two-finger dragging operation, or athree-finger dragging operation. Here, the current size of the targetvideo is greater than the size of the video play area, which may beunderstood as the side length of the target video is greater than theside length of the video play area in at least one direction. Referringto FIG. 2 , the length of the target video may be greater than thelength of the video play area, or the width of the target video may begreater than the width of the video play area.

It should be noted that, through the predefined moving operation, thetarget video may be moved in the video play area, so that the user canmove the desired viewing part to a convenient viewing position, therebyimproving the information acquisition efficiency of the user.

As an example, when the user watches a beauty video, the user may payattention to beauty products used by the blogger, and it is difficult toclearly view the beauty products when the video does not give a close-upof the product. Through the size transformation operation and/or movingoperation provided in this disclosure, the video picture at the productcan be enlarged, and the user can also move the video picture at theproduct to the middle position of the video play area, so that thebeauty product information can be clearly viewed.

In some embodiments, the determining target transformation informationof a target video based on whether a current size of the target video isa preset anchor point size includes: determining the targettransformation information based on an operation type of the sizetransformation operation and the preset anchor point size.

In some embodiments, the determining the target transformationinformation based on an operation type of the size transformationoperation and the preset anchor point size includes: using first targettransformation information in response to the operation type and thepreset anchor point size satisfying a first preset relationship, wherethe first target transformation information indicates that the size ofthe target video is switched between different preset anchor pointsizes; and using second target transformation information in response tothe operation type and the preset anchor point size satisfying a secondpreset relationship, where the second target transformation informationcorresponds to a free-scaling mode.

In some embodiments, the first preset relationship indicates that theoperation type, the current size of the target video and the presetanchor point size satisfy a preset first correspondence or do notsatisfy a preset second correspondence.

In some embodiments, the second preset relationship indicates that theoperation type, the current size of the target video and the presetanchor point size do not satisfy the preset first correspondence orsatisfy the preset second correspondence.

In some embodiments, the first preset relationship includes a case thatthe current size of the target video is an original image size, theoperation type is an enlarging operation, and the target transformationinformation includes transforming the target video to a full-screenimage size; and/or, a case that the current size of the target video isthe full-screen image size, the operation type is a narrowing operation,and the target transformation information includes transforming thetarget video to the original image size.

In some embodiments, the second preset relationship includes a case thatthe current size of the target video is the original image size, theoperation type is the narrowing operation, and the target transformationinformation includes freely scaling the target video based on operationinformation; and/or, a case that the current size of the target video isthe full-screen image size, the operation type is the enlargingoperation, and the target transformation information includes freelyscaling the target video based on the operation information.

Here, the first target transformation information indicates to switchthe size of the target video between different preset anchor pointsizes.

Here, the second target transformation information corresponds to thefree-scaling mode. In the free-scaling mode, the size of the targetvideo may be continuously enlarged or narrowed according to the useroperation. For example, the size of the target video is graduallyenlarged when the distance between two touch points operated by the userbecomes greater and greater, or the size of the target video isgradually narrowed when the distance between two touch points operatedby the user becomes less and less.

In some embodiments, the above step 101 may include: determining, inresponse to determining that the current size is the preset anchor pointsize and in response to the operation type of the size transformationoperation corresponding to the preset anchor point size, the presettransformation information corresponding to the preset anchor point sizeas the target transformation information.

Here, the operation type of the size transformation operation mayinclude at least one of a narrowing operation and an enlargingoperation.

Here, each preset anchor point size has corresponding presettransformation information and also has a corresponding operation type.

In some application scenarios, the free-scaling mode may be entered inresponse to determining that the current size is the preset anchor pointsize and in response to the operation type of the size transformationoperation not corresponding to the preset anchor point size.

Here, the preset transformation information may be set according to anactual application scenario, which is not limited herein. The presettransformation information may be a preset transformation scale or apreset size.

It should be noted that by setting the correspondence between the presetanchor point size and the operation type and setting the correspondencebetween the preset anchor point size and the preset transformationinformation, when the target video has the anchor point size, the videopicture can be quickly transformed to a common size, such as otherpreset anchor point sizes, by one corresponding operation, which avoidsthe need for the user to perform multiple operations to transform to adesired size, thereby reducing user operations and reducing computingresources and display resources consumed by user operations.

In some embodiments, the size transformation operation includes anenlarging operation, the preset anchor point size includes an originalimage size, and preset transformation information corresponding to theoriginal image size indicates a full-screen image size, an operationtype corresponding to the original image size is the enlargingoperation.

Here, a case, that the preset transformation information correspondingto the original image size indicates the full-screen image size, may beunderstood as a case that the preset transformation informationcorresponding to the original image size may indicate transformationinformation for transforming the original image size to the full-screenimage size.

Correspondingly, the determining, in response to determining that thecurrent size is the preset anchor point size and in response to theoperation type of the size transformation operation corresponding to thepreset anchor point size, the preset transformation informationcorresponding to the preset anchor point size as the targettransformation information may include: determining, in response todetermining that the current size is the original image size and inresponse to detecting the enlarging operation in the video play area,the preset transformation information indicating the full-screen imagesize as the target transformation information.

It should be noted that, when the target video has the original imagesize, the target video can be adjusted to the full-screen image size byperforming the enlarging operation. Thus, the number of user operationscan be reduced, and the computing resources and display resourcesconsumed by the user operations can be reduced.

In some embodiments, the size transformation operation includes anarrowing operation, the preset anchor point size includes a full-screenimage size, and preset transformation information corresponding to thefull-screen image size indicates an original image size, an operationtype corresponding to the full-screen image size is the narrowingoperation.

Here, a case, that preset transformation information corresponding tothe full-screen image size indicates an original image size, may beunderstood as a case that the preset transformation informationcorresponding to the full-screen image size may indicate transformationinformation for transforming the full-screen image size to the originalimage size.

Correspondingly, the determining, in response to determining that thecurrent size is the preset anchor point size and in response to theoperation type of the size transformation operation corresponding to thepreset anchor point size, the preset transformation informationcorresponding to the preset anchor point size as the targettransformation information includes: determining, in response todetermining that the current size is the full-screen image size and inresponse to detecting the narrowing operation in the video play area,the preset transformation information indicating the original image sizeas the target transformation information.

It should be noted that, when the target video has the full-screen imagesize, the target video can be adjusted to the original image size byperforming the narrowing operation.

Thus, the number of user operations can be reduced, and the computingresources and display resources consumed by the user operations can bereduced.

In some embodiments, reference is made to FIG. 3 , which is an optionalimplementation of above step 101. The flow shown in FIG. 3 may includesteps 1011 and step 1012.

Step 1011, enter, in response to detecting the size transformationoperation in the video play area and in response to satisfying a presetfree-scaling condition, a free-scaling mode.

Step 1012, determine, in response to determining to enter thefree-scaling mode, the target transformation information based ontransformation information indicated by the size transformationoperation and the current size of the target video.

In other words, in the free-scaling mode, the target transformationinformation may be determined based on the transformation information ofthe size transformation operation and the current size of the targetvideo.

In some application scenarios, in the free-scaling mode, the size of theenlarged video image may be larger than the size of the screen duringthe target video is enlarged, in this case, only a part of the size ofthe enlarged video image can be displayed on the screen, other parts ofthe enlarged video image may be displayed by operations such as draggingthe video image.

In some embodiments, the above-mentioned free-scaling condition includesat least one of: a case that the current size of the target video is notthe preset anchor point size; and a case that an operation type of thesize transformation operation does not correspond to the preset anchorpoint size.

As an example, on the basis that the target video has the original imagesize, the picture is narrowed to enter the free-scaling mode, that is,the video picture may be enlarged or narrowed freely.

As an example, on the basis that the target video has the full-screenimage size, the picture is enlarged to enter the free-scaling mode, thatis, the video picture may be enlarged or narrowed freely.

It should be noted that, by setting the above free-scaling condition,the user's usage scenario can be fitted and the user's switchingrequirements between free-scaling and anchor point size transformationcan be met, thereby reducing the number of operations and operation timefor the user to perform size transformation operations, and improving anoperation efficiency.

In some embodiments, the free-scaling condition comprises a case thatthe current size of the target video is the preset anchor point size,and an operation type do not correspond to the preset anchor point size,wherein the operation type is indicated by the ratio of a real-time sizeof the target video when a size transformation operation is released tothe current size of the target video.

In some application scenarios, as the size transformation operation isperformed, the execution body may determine the real-time size of thetarget video in real time.

In some embodiments, before the size transformation operation isreleased, a size of the target video is transformed in real time basedon the transformation information indicated by the size transformationoperation. In other words, as the size transformation operation isperformed, the target video displayed on the screen may be enlarged ornarrowed with the size transformation operation.

It should be noted that, a size transformation effect is displayed inreal time based on the user's size transformation operation, a progressof the size transformation can be displayed to the user in time, so thatthe user can continue or terminate the size transformation operationaccording to the effect of real-time size transformation operation.

In some application scenarios, the real-time size may be used as thebasis for determining a type of a user operation.

Here, if the ratio of the real-time size of the target video when theabove-mentioned size transformation operation is released to the currentsize is greater than 1, it indicates an enlarging operation type. If theratio of the real-time size of the target video when the above-mentionedsize transformation operation is released to the current size is lessthan 1, it indicates a narrowing operation type.

It should be noted that using the real-time size when the operation isreleased as the basis for determining the type of the user operation canimprove the accuracy of determining the operation type, therebyimproving the accuracy of transformation. Specifically, the user watchesthe video in real time, and determines whether to release the sizetransformation operation according to the real-time screen. Therefore,the real-time size of the target video when the user releases the sizetransformation operation can more accurately reflect the user'sexpectations for the degree of size transformation.

In some embodiments, on the one hand, the target transformationinformation of the target video is determined by referring to whetherthe current size of the target video is the preset anchor point size, soas to be compatible with the transformation operations commonly used byusers and meet the operation requirements of most users; on the otherhand, by setting the trigger condition of the free-scaling mode, thefree-scaling mode is triggered under certain conditions (such asreceiving the enlarging operation when the picture has a full-screensize, or receiving the narrowing operation when the picture has anoriginal image size, where the enlarging operation and the narrowingoperation may real-time operation results or operation results when theoperation is released), which can provide more precise scalingprocessing and meet further needs of some users. The integration of theabove two aspects can meet different operation scenarios of a largenumber of users, maximize the operation efficiency and improve theexperience.

In some embodiments, the above method may further include: displayingcorresponding prompt information based on a scaling mode performed onthe target video, where the prompt information is used to prompt thescaling mode.

Here, the display manner and content of the above-mentioned promptinformation may be set according to the actual application scenario,which is not limited here.

As an example, the prompt information may be displayed in the form of atoast.

As an example, the scaling mode may indicate to adjust the size of thevideo picture to the full-screen image size, the corresponding promptinformation may be “the size has be switched to full screen”.

As an example, the scaling mode may indicate the free-scaling mode, andcorresponding prompt information may be “entered the free-scaling mode”.

As an example, the scaling mode may indicate to adjust the size of thevideo picture to the original image size, and the corresponding promptinformation may be “restored to the original size”.

In some embodiments, the displaying corresponding prompt informationbased on a scaling mode performed on the target video includes: inresponse to adjusting the target video to a full-screen image size,displaying first prompt information, where the first prompt informationis used to indicate that the target video is in a full screen playstate.

In some embodiments, the displaying corresponding prompt informationbased on a scaling mode performed on the target video includes: inresponse to adjusting the target video to the original image size,displaying second prompt information, where the second promptinformation is used to indicate that the target video is in an originalsize playing state.

In some embodiments, the displaying corresponding prompt informationbased on a scaling mode performed on the target video includes: inresponse to determining that the free-scaling mode is entered,displaying third prompt information, where the third prompt informationis used to indicate that the target video can be freely scaled based onthe size transformation operation.

In some embodiments, the method further includes: displaying, inresponse to determining that a size of the transformed target video isnot an original image size, a restore control, where the restore controlis used for transforming the target video to the original image size.

In other words, if the video picture is of a non-original scale, abutton marked “Restore Screen” may be displayed, and after clicking the“Restore Screen” button, the video picture may be switched back to theoriginal image size.

It should be noted that, by settings the restore control, the user canswitch the video picture to the original image picture conveniently, andoperations for the user to return to the original image picture can bereduced, that is, the interaction efficiency can be improved.

In some embodiments, the above method may further include: detecting, inresponse to end of the size transformation operation and/or a movingoperation, whether the target video is moved out of the video play area;and correcting, in response to determining that the target video ismoved out of the video play area, a video picture in the video playarea, to obtain the target video picture that matches the size of thevideo play area.

Here, the determination of whether the target video is moved out of thevideo play area may be performed by setting specific determiningconditions according to the actual application scenario. In someembodiments, if there is no picture in the video play area in adirection, but the target video also has images which are not beingdisplayed along the direction, in this case, it may be understood thatthe target video is moved out of the video play area.

Here, the correction of the video picture may include operations such astranslating the target video, and pulling the target video back to thevideo play area.

As an example, if the picture of the target video is moved out of thevideo play area, the target video may be pulled back to the video playarea.

It should be noted that by setting a correction link, the occurrence ofa case that the target video is moved out of the video play area can bereduced, and an information display efficiency can be improved.

The introduction of the embodiment of FIG. 4 can solve a furthertechnical problem, that is, the problem that the video sizetransformation operation may cause confusion in the layout of the videoplay screen.

It should be noted that, the method provided in the embodiment of FIG. 4may be applied to any transformation scenario of the target videoinvolved in this disclosure. The method provided in the embodiment ofFIG. 4 may be applied to a size transformation scenario and/or atranslation scenario. The application to the size transformationscenario may include the application to the free-scaling scenario, orthe application to the scenario where the size transformation isperformed based on the preset transformation information.

Reference is made to FIG. 4 , which is a flowchart of an interactionmethod according to another embodiment of the present disclosure. In theprocess shown in FIG. 4 , the interaction method includes steps 401 and403.

Step 401, package a first layer into a second layer.

In this embodiment, a first execution body (for example, a terminaldevice) of the interaction method may package the first layer into thesecond layer.

Here, the layer where the acquired target video is located is the firstlayer.

Usually, a player on a terminal may acquire the target video from alocal or other electronic device. The target video parsed by the playeris drawn on the layer, which may be displayed on the screen. In someapplication scenarios, the player may further include playing logicinformation to control the play of the video, for example, to controlthe switching of the video, to control the play progress, and so on.

Here, the layer corresponding to the player may be recorded as the firstlayer. Here, the layer corresponding to the player may be understood asthe layer on which the video parsed by the player may be drawn.

Here, the target video in the second layer has the same play progress asthe target video in the first layer.

Here, the second layer may be understood as a new layer packaged outsidethe first layer. The transformation of the second layer does not affecta play logic of the player. Moreover, the play progress of the secondlayer is the same as the play progress of the first layer. In otherwords, it may be understood as drawing the target video on the firstlayer onto the second layer.

In some application scenarios, the number of layers in the first layermay be one or more. If there are at least two layers in the first layer,the display content of each layer may be drawn to the second layer.

Here, the target video in the second layer is used for transformationbased on the size transformation operation and/or a moving operation. Inother words, after the second layer is packaged outside the first layer,the image displayed on the screen may be obtained from the second layer.

It should be noted that, the method provided in step 401 may be appliedto the size transformation scenario and/or the translation scenario.

In some embodiments, the above-mentioned first execution body maytransform the target video in the second layer by: determining atransformation coefficient based on operation position information ofthe size transformation operation and/or the moving operation, where thetransformation coefficient includes at least one of size transformationinformation and a moving coefficient; and transforming the target videoin the second layer based on the transformation coefficient.

Step 402, determine a transformation coefficient based on operationposition information of the size transformation operation and/or themoving operation.

Here, the transformation coefficient includes at least one of the sizetransformation information and the moving coefficient.

Here, the above-mentioned predefined transformation operation mayinclude, but is not limited to, at least one of the size transformationoperation and the moving operation.

Here, the user may touch the screen, and the terminal converts a touchsignal into a logical coordinate point. Then the terminal may calculatea change in the distance of the coordinate point when the finger slides,thereby calculating a displacement. The transformation informationand/or the moving coefficient are then determined based on thedisplacement.

Step 403, transform the target video in the second layer based on thetransformation coefficient.

It should be noted that the interaction method provided by theembodiment corresponding to FIG. 4 can package a new layer outside thelayer corresponding to the player, and perform transformation on the newlayer. In this way, video play and video transformation can be isolatedto ensure that the video transformation does not affect the processingon the target video (including play, transformation, or the like)performed by the player. Therefore, it can be ensured that video playand video transformation are performed simultaneously, the interactionefficiency and the information display efficiency are improved, and theinformation acquisition efficiency of the user is also improved.

In some embodiments, the method may further include: acquiring a targetvideo picture that matches the video play area from the target video inthe second layer; and playing the target video picture that matches thevideo play area in the video play area.

Here, a preset area of the second layer may correspond to the video playarea. The image in the preset area needs to be displayed in the videoplay area.

As an example, for the moving operation, coordinates of the image on thesecond layer may be translated, and it may be understood that in thiscase, the image in the preset area may be changed.

As an example, for the size transformation operation, the image on thesecond layer may be transformed, and it may be understood that in thiscase, the image in the preset area may be changed.

Here, no matter whether the image in the second layer is changed or not,the image displayed in the video play area may be obtained from theabove-mentioned preset area.

In some application scenarios, the size of the video play area may besmaller than the size of the target video, and the video play areacannot display a complete picture of the target video. In this case, theacquired picture of the target video that matches the video play areamay be displayed in the video play area as the target video picture.

Here, matching with the video play area may be determined by setting amatching determining condition according to actual applicationscenarios.

As an example, if the length of the target video is less than the lengthof the video play area and the width of the target video is less thanthe width of the video play area, a complete picture of the target videomay be used as the target video picture matching the video play area.

As an example, if the user continues to enlarge the video size when thevideo size is the full-screen image size, the picture displayed on thescreen is a part of the complete video picture. Therefore, it isnecessary to acquire a part of the video picture that matches the videoplay area as the target video picture. The length of the target videopicture may be the same as the length of the video play area, and thewidth of the target video picture may be the same as the width of thevideo play area.

It should be noted that, by obtaining the target video picture from thesecond layer, the video picture that matches the video play area can beobtained without changing the play logic of the player. For the user,playing and transforming the video can be performed at the same time,thereby improving the information display efficiency and improving theinformation acquisition efficiency of the user.

Reference is made to FIG. 5 , which is a flowchart of a videotransformation method according to an embodiment of the presentdisclosure. The method is applied to a terminal device. As shown in FIG.5 , the video transformation method includes the following steps 501 and502.

Step 501, package a first layer into a second layer.

In this embodiment, a second execution body (for example, the firstelectronic device) of the interaction method may send a data forwardingrequest to a data forwarding device supporting a wireless network.

Here, a target video in the second layer has the same play progress as atarget video in the first layer, and a layer corresponding to a playeris the first layer.

Step 502, transform the target video in the second layer based on apredefined transformation operation.

In some embodiments, the above step 501 may include: determining atransformation coefficient based on operation position information ofthe predefined transformation operation, where the transformationcoefficient includes at least one of size transformation information anda moving coefficient; and transforming the target video in the secondlayer based on the size transformation information and the movingcoefficient.

In some embodiments, the above method may further include: acquiring atarget video picture that matches the video play area from the targetvideo in the second layer; and playing the target video picture thatmatches the video play area.

It should be noted that, in the interaction method provided by theembodiment corresponding to FIG. 5 , for the implementation details andtechnical effects of each step, reference may be made to the descriptionof the relevant part in this disclosure, and details are not repeatedhere.

Reference is made to FIG. 6 , as an implementation of the methodsdescribed above, the present disclosure provides an embodiment of aninteraction apparatus, the apparatus embodiment corresponds to themethod embodiment shown in FIG. 1 , and the apparatus may specificallybe used in various electronic devices.

As shown in FIG. 6 , the interaction apparatus in this embodimentincludes a determining unit 601 and a transforming unit 602. Thedetermining unit is configured to determine, in response to detecting apredefined size transformation operation, target transformationinformation of a target video based on whether a current size of thetarget video is a preset anchor point size, where the target video is avideo played in a video play area. The transforming unit configured totransform the target video based on the target transformationinformation, and play the transformed target video

In this embodiment, the specific processing of the determining unit 601and the transforming unit 602 of the interaction apparatus and thetechnical effects brought by the units may refer to the relevantdescriptions of steps 101 and 102 in the corresponding embodiment ofFIG. 1 respectively, which will is not repeated here.

In some embodiments, the preset anchor point size corresponds to anoperation type and preset transformation information; and thedetermining, in response to detecting a predefined size transformationoperation, target transformation information of a target video based onwhether a current size of the target video is a preset anchor point sizeincludes: determining, in response to determining that the current sizeis the preset anchor point size and in response to the operation type ofthe size transformation operation corresponding to the preset anchorpoint size, the preset transformation information corresponding to thepreset anchor point size as the target transformation information.

In some embodiments, the size transformation operation includes anenlarging operation, the preset anchor point size includes an originalimage size, and preset transformation information corresponding to theoriginal image size indicates a full-screen image size, an operationtype corresponding to the original image size is the enlargingoperation; and the determining, in response to determining that thecurrent size is the preset anchor point size and in response to theoperation type of the size transformation operation corresponding to thepreset anchor point size, the preset transformation informationcorresponding to the preset anchor point size as the targettransformation information includes: determining, in response todetermining that the current size is the original image size and inresponse to detecting the enlarging operation, the preset transformationinformation indicating the full-screen image size as the targettransformation information.

In some embodiments, the size transformation operation includes anarrowing operation, the preset anchor point size includes a full-screenimage size, and preset transformation information corresponding to thefull-screen image size indicates an original image size, an operationtype corresponding to the full-screen image size is the narrowingoperation; and the determining, in response to determining that thecurrent size is the preset anchor point size and in response to theoperation type of the size transformation operation corresponding to thepreset anchor point size, the preset transformation informationcorresponding to the preset anchor point size as the targettransformation information includes: determining, in response todetermining that the current size is the full-screen image size and inresponse to detecting the narrowing operation, the preset transformationinformation indicating the original image size as the targettransformation information.

In some embodiments, the determining, in response to detecting apredefined size transformation operation in the video play area, targettransformation information of a target video based on whether a currentsize of the target video is a preset anchor point size includes:entering, in response to detecting the size transformation operation andin response to satisfying a preset free-scaling condition, afree-scaling mode; and determining, in response to determining to enterthe free-scaling mode, the target transformation information based ontransformation information indicated by the size transformationoperation and the current size of the target video.

In some embodiments, the free-scaling condition includes at least oneof: a case that the current size of the target video is not the presetanchor point size; and a case that an operation type of the sizetransformation operation does not correspond to the preset anchor pointsize.

In some embodiments, the free-scaling condition comprises a case thatthe current size of the target video is the preset anchor point size,and an operation type do not correspond to the preset anchor point size,wherein the operation type is indicated by the ratio of a real-time sizeof the target video when a size transformation operation is released tothe current size of the target video.

In some embodiments, before the size transformation operation isreleased, a size of the target video is transformed in real time basedon the transformation information indicated by the size transformationoperation.

In some embodiments, the apparatus is further configured to: display, inresponse to determining that a size of the transformed target video isnot an original image size, a restore control, where the restore controlis used for transforming the target video to the original image size.

In some embodiments, the apparatus is further configured to: move, inresponse to detecting a predefined moving operation and in response todetermining that the current size of the target video is greater than asize of the video play area, the target video in the video play area.

In some embodiments, the apparatus is further configured to: detect, inresponse to the end of the size transformation operation and/or a movingoperation, whether the target video is moved out of the video play area;and correct, in response to determining that the target video is movedout of the video play area, a video picture in the video play area.

In some embodiments, the apparatus is further configured to: package afirst layer into a second layer, where a layer corresponding to a playeris the first layer, and a target video in the second layer has the sameplay progress as a target video in the first layer, the target video inthe second layer is used for transformation based on the sizetransformation operation and/or a moving operation.

In some embodiments, the target video in the second layer is transformedby: determining a transformation coefficient based on operation positioninformation of the size transformation operation and/or the movingoperation, where the transformation coefficient includes at least one ofsize transformation information and a moving coefficient; andtransforming the target video in the second layer based on thetransformation coefficient.

In some embodiments, the apparatus is further configured to: acquire atarget video picture that matches the video play area from the targetvideo in the second layer; and play the target video picture thatmatches the video play area in the video play area.

In some embodiments, the determining target transformation informationof a target video based on whether a current size of the target video isa preset anchor point size includes: determining the targettransformation information based on an operation type of the sizetransformation operation and the preset anchor point size.

In some embodiments, the determining the target transformationinformation based on an operation type of the size transformationoperation and the preset anchor point size includes: using first targettransformation information in response to the operation type and thepreset anchor point size satisfying a first preset relationship, wherethe first target transformation information indicates that the size ofthe target video is switched between different preset anchor pointsizes; and using second target transformation information in response tothe operation type and the preset anchor point size satisfying a secondpreset relationship, where the second target transformation informationcorresponds to a free-scaling mode.

In some embodiments, the first preset relationship indicates that theoperation type, the current size of the target video and the presetanchor point size satisfy a preset first correspondence or do notsatisfy a preset second correspondence; and the second presetrelationship indicates that the operation type, the current size of thetarget video and the preset anchor point size do not satisfy the presetfirst correspondence or satisfy the preset second correspondence.

In some embodiments, the first preset relationship includes a case thatthe current size of the target video is an original image size, theoperation type is an enlarging operation, and the target transformationinformation includes transforming the target video to a full-screenimage size; and/or, a case that the current size of the target video isthe full-screen image size, the operation type is a narrowing operation,and the target transformation information includes transforming thetarget video to the original image size; and/or the second presetrelationship includes a case that the current size of the target videois the original image size, the operation type is the narrowingoperation, and the target transformation information includes freelyscaling the target video based on operation information; and/or, a casethat the current size of the target video is the full-screen image size,the operation type is the enlarging operation, and the targettransformation information includes freely scaling the target videobased on the operation information.

Reference is made to FIG. 7 , as an implementation of the methodsdescribed above, the present disclosure provides an embodiment of anvideo transformation apparatus, the apparatus embodiment corresponds tothe method embodiment shown in FIG. 5 , and the apparatus mayspecifically be used in various electronic devices.

As shown in FIG. 7 , the apparatus in this embodiment includes apackaging module 701 and a transforming module 702. The packaging moduleis configured to package a first layer into a second layer, where atarget video in the second layer has the same play progress as a targetvideo in the first layer, and a layer corresponding to a player is thefirst layer. The transforming module is configured to transform thetarget video in the second layer based on a predefined transformationoperation.

In this embodiment, the specific processing of the packaging module 701and the transforming module 702 of the apparatus and the technicaleffects brought by the units may refer to the relevant descriptions ofsteps 501 and 502 in the corresponding embodiment of FIG. 5respectively, which will is not repeated here.

In some embodiments, the packaging module 701 may be configured to:determine a transformation coefficient based on operation positioninformation of the predefined transformation operation, where thetransformation coefficient includes at least one of size transformationinformation and a moving coefficient; and transform the target video inthe second layer based on the size transformation information and themoving coefficient.

In some embodiments, the above apparatus is further configured to:acquire a target video picture that matches the video play area from thetarget video in the second layer; and play the target video picture thatmatches the video play area in the video play area.

In some embodiments, the layer corresponding to the player is the firstlayer to isolate video play from video transformation.

Reference is made to FIG. 8 , which is an exemplary system architectureto which an interaction method according to an embodiment of the presentdisclosure may be applied.

Reference is made to FIG. 8 , which is an exemplary system architectureto which an information process method according to an embodiment of thepresent disclosure may be applied.

As shown in FIG. 8 , the system architecture may include terminaldevices 801, 802, and 803, a network 804, and a server 805. The network804 is a medium used to provide a communication link between theterminal devices 801, 802, 803 and the server 805. The network 804 mayinclude various connection types, such as wired, wireless communicationlinks, or fiber optic cables.

The terminal devices 801, 802, and 803 may interact with the server 805through the network 804 to receive or send messages and the like.Various client applications, such as web browser applications, searchapplications, and news information applications, may be installed on theterminal devices 801, 802 and 803. The client applications in theterminal devices 801, 802, and 803 may receive the user's instruction,and complete corresponding functions according to the user'sinstruction, such as adding corresponding information to the informationaccording to the user's instruction.

The terminal devices 801, 802, and 803 may be hardware or software. Whenthe terminal devices 801, 802, and 803 are hardware, they may be variouselectronic devices that have a display screen and support web browsing,including but not limited to smart phones, tablet computers, e-bookreaders, MP3 players (Moving Picture Experts Group Audio Layer III), MP4(Moving Picture Experts Group Audio Layer IV) players, laptops anddesktops, etc. When the terminal devices 801, 802, and 803 are software,they may be installed in the electronic devices listed above. They maybe implemented as multiple software or software modules (e.g., softwareor software modules for providing distributed services), or may beimplemented as a single software or software module, which is notlimited here.

The server 805 may be a server that can provide various services, suchas receiving information acquiring requests sent by terminal devices801, 802, and 803, acquiring display information corresponding to theinformation acquiring requests in various manners according to theinformation acquiring requests, and sending data related to the displayinformation to the terminal devices 801, 1802, and 803.

It should be noted that the information processing method provided bythe embodiment of the present disclosure may be executed by a terminaldevice, and correspondingly, an information process device may bearranged in the terminal devices 801, 802, and 803. In addition, theinformation processing method provided by the embodiment of the presentdisclosure may also be executed by the server 805, and accordingly, theinformation processing device may be arranged in the server 805.

It should be understood that the numbers of terminal devices, networksand servers in FIG. 8 are merely illustrative. There may be any numberof terminal devices, networks and servers according to implementationrequirements.

Reference is made to FIG. 9 which shows a schematic structural diagramof an electronic device (such as terminal devices or servers in FIG. 8 )for implementing the embodiments of the present disclosure. The terminaldevice in the embodiments of the present disclosure may include but notlimited to mobile terminals such as a mobile phone, a notebook computer,a digital broadcast receiver, a personal digital assistance (PDA), atablet computer (PAD), a portable multi-media player (PMP) and a vehicleterminal (such as a vehicle navigation terminal); and fixed terminalssuch as digital TV and a desktop computer. The electronic device shownin FIG. 9 is schematic, and is not intended to limit functions and scopeof the embodiments of the present disclosure.

As shown in FIG. 9 , the electronic device may include a processingapparatus (such as a central processor and a graphic processor) 901. Theprocessing apparatus may perform various appropriate actions andprocessing by executing programs stored in a read-only memory (ROM) 902or programs uploaded from a storage apparatus 908 to a random accessmemory (RAM) 903. Various programs and data required for operations ofthe electronic device 900 are also stored in the RAM 903. The processingapparatus 901, the ROM 902 and the RAM 903 are connected to each otherthrough the bus 904. An input/output (I/O) interface 9011 is alsoconnected to the bus 904.

Generally, the following components are connected to the I/O interface905: an input apparatus 909 such as a touch screen, a touch panel, akeyboard, a mouse, a camera, a microphone, an accelerometer, andgyroscope; an output apparatus 907 such as a liquid crystal display(LCD), a loudspeaker and a vibrator; a storage apparatus 908 such as amagnetic tape and a hard disk; and a communication apparatus 909. Thecommunication apparatus 909 may allow the electronic device tocommunicate with other device in a wired or wireless manner to exchangedata. Although FIG. 9 shows the electronic device provided with variousapparatuses, it should be understood that not all shown apparatuses arenecessary. Alternatively, more or less apparatuses may be included.

According to the embodiments of the present disclosure, a processdescribed in the flowchart may be implemented by computer softwareprograms. For example, according to an embodiment of the presentdisclosure, a computer program product including computer programcarried on a non-transient computer readable medium is provided. Thecomputer program includes program codes for performing the method shownin the flowchart. In such embodiment, the computer program may bedownloaded and installed from the network through the communicationapparatus 909, installed from the storage apparatus 908 or installedfrom the ROM 902. The computer program is executed by the processingapparatus 901 to perform functions defined in the methods described inthe embodiments of the present disclosure.

It should be noted that, the computer readable medium described in thepresent disclosure may be a computer readable signal medium, a computerreadable storage medium or any combination thereof. The computerreadable storage medium may include but not limited to a system, anapparatus or a device in an electric, magnetic, optical,electromagnetic, infrared or a semiconductor form, or any combinationthereof. The computer readable storage medium may include but notlimited to electric connection of one or more wires, a portable computermagnetic disk, a hard disk, a random access memory (RAM), a read-onlymemory (ROM), an erasable programmable read only memory (EPROM or aflash memory), an optical fiber, a portable compact disk read onlymemory (CD-ROM), an optical storage device, a magnetic storage device orany combination thereof. In the present disclosure, the computerreadable storage medium may be a tangible medium including or storingprograms. The programs may be used by an instruction execution system,apparatus or device, or may be used in combination with the instructionexecution system, apparatus or device. In the present disclosure, acomputer readable signal medium may include a data signal in a basebandor propagated as a part of carrier. The computer readable signal mediumcarries computer readable program codes. The propagated data signal mayinclude but not limited to an electromagnetic signal, an optical signalor any combination thereof. The computer readable signal medium may beany computer readable medium other than the computer readable storagemedium. The computer readable signal medium may send, propagate ortransmit programs used by the instruction execution system, apparatus ordevice or the programs used in combination with the instructionexecution system, apparatus or device. The program code included in thecomputer readable medium may be transmitted via any appropriate medium,including but not limited to an electric wire, an optical fiber, radiofrequency (RF) or any appropriate combination thereof.

In some embodiments, the client and the server may perform communicationby using any known network protocol such as Hyper Text Transfer Protocol(HTTP) or any network protocol to be developed, and may connect withdigital data in any form or carried in any medium (for example, acommunication network). The communication network includes a local areanetwork (LAN), a wide area network (WAN), an international network (forexample the internet), a peer-to-peer network (for example ad hocpeer-to-peer network), and any known network or network to be developed.

The computer readable storage medium may be included in the electronicdevice, or the computer readable storage medium may be independent fromthe electronic device, i.e., not being installed in the electronicdevice.

The computer readable medium carries one or more programs. The one ormore programs, when executed by the electronic device, cause theelectronic device to: determine, in response to detecting a predefinedsize transformation operation, target transformation information of atarget video based on whether a current size of the target video is apreset anchor point size, where the target video is a video played in avideo play area; and transform the target video based on the targettransformation information, and play the transformed target video.

The above-mentioned computer readable medium carries one or moreprograms, and when the above-mentioned one or more programs, whenexecuted by the electronic device, cause the electronic device to:package a first layer into a second layer, where a target video in thesecond layer has the same play progress as a target video in the firstlayer, and a layer corresponding to a player is the first layer; andtransform the target video in the second layer based on a predefinedtransformation operation.

Computer program codes for performing operations of the presentdisclosure may be written by using one or more program design languageor any combination. The program design language includes but not limitedto object oriented program design language such as Java, Smalltalk andC++, and further includes conventional process-type program designlanguage such as “C” or similar program design language. The programcodes may be completely or partially executed on a user computer,performed as an independent software packet, partially executed on theuser computer and partially executed on a remote computer, or completelyexecuted on the remote computer or a server. In a case of involving theremote computer, the remote computer may connect to the user computervia any type of network such as a local area network (LAN) and a widearea network (WAN). Alternatively, the remote computer may connect to anexternal computer (such as achieving internet connection by servicesprovided by the internet network service provider).

The flowcharts and block diagrams shown in the drawings show a systemarchitecture, function and operation which may be implemented by thesystem, method and computer program product according to the embodimentsof the present disclosure. Each block in the flowcharts or the blockdiagram may represent a part of a module, a program section or codesincluding executable instructions for implementing specified logicfunctions. It should be noted that, in alternative embodiment, functionsdenoted in the blocks may be performed in an order different from theorder denoted in the drawing. For example, operations in two blocksconnected successively may be performed in parallel, or may be performedin an opposite order, depending on the involved function. It should benoted that, each block in the block diagrams and/or flowcharts, and acombination of blocks in the block diagrams and/or flowcharts may beimplemented by a dedicated hardware system for performing specifiedfunctions or operations, or may be implemented by a combination ofdedicated hardware and computer instructions.

Units involved in the embodiments of the present disclosure may beimplemented by software or hardware. Names of the units do not limit theunits in a certain case. For example, the transformation unit may alsobe described as “a unit for playing the target video”.

The functions described above may be partially performed by one or morehardware logic components. For example, non-restrictively, exemplarytypes of hardware logic components that may be used include: a fieldprogrammable gate array (FPGA), an application specific integratedcircuit (ASIC), an application specific standard product (ASSP), asystem on chip (SOC), a complex programmable logic device (CPLD) and soon.

In the context of the present disclosure, the machine readable mediummay be a tangible medium including or storing programs. The programs maybe used by an instruction execution system, apparatus or device, or maybe used in combination with the instruction execution system, apparatusor device. The machine readable medium may be a machine readable signalmedium or a machine readable storage medium. The machine readable mediummay include but not limited to a system, an apparatus or a device in anelectric, magnetic, optical, electromagnetic, infrared or asemiconductor form, or any combination thereof. The machine readablestorage medium may include but not limited to electric connection of oneor more wires, a portable computer magnetic disk, a hard disk, a randomaccess memory (RAM), a read-only memory (ROM), an erasable programmableread only memory (EPROM or a flash memory), an optical fiber, a portablecompact disk read only memory (CD-ROM), an optical storage device, amagnetic storage device or any combination thereof.

The preferred embodiments and the technical principles of the presentdisclosure are described above. It should be understood by those skilledin the art that, the protection scope of the present disclosure is notlimited to the technical solutions formed by specific combination of theabove technical features, and other technical solutions formed by randomcombinations of the above technical features or equivalent featureswithout departing from the concept of the present disclosure also fallwithin the protection scope of the present disclosure, for example thetechnical solution formed by replacement between the above technicalfeatures and technical features with similar functions disclosed (notlimited) in the present disclosure.

Although the operations are described in a specific order, theoperations are unnecessarily to be performed in the specific order or ina chronological order. In a certain environment, a multi-task andparallel processing may be beneficial. Although specific details aredescribed above, the details should not be understood as restriction tothe scope of the present disclosure. Some features described in thecontext of different embodiments may be combined in one embodiment.Alternatively, the features described in the context of one embodimentmay be implemented in multiple embodiments independently or in anyappropriate sub-combination.

The subject matter is described by language specific to the structurefeature and/or method logic, it should be understood that the subjectmatter defined in the appended claims is not limited to the specificfeatures or actions described above. The specific features and actionsare only schematic implementation of the claims.

The invention claimed is:
 1. An interaction method, comprising:determining, in response to detecting a size transformation operation,target transformation information of a target video based on whether acurrent size of the target video is a preset anchor point size, whereinthe target video is a video played in a video play area, wherein thepreset anchor point size corresponds to an operation type and presettransformation information, and wherein the determining, in response todetecting a size transformation operation, target transformationinformation of a target video based on whether a current size of thetarget video is a preset anchor point size further comprises: inresponse to determining that the current size of the target video is thepreset anchor point size and determining that a type of the sizetransformation operation is the operation type corresponding to thepreset anchor point size, identifying the preset transformationinformation corresponding to the preset anchor point size as the targettransformation information, and in response to determining that thecurrent size of the target video is not the preset anchor point size ordetermining that the type of the size transformation operation is notthe operation type corresponding to the preset anchor point size,entering a free-scaling mode in which the target transformationinformation is determined based on transformation information indicatedby the size transformation operation and the current size of the targetvideo; and transforming the target video based on the targettransformation information, and playing the transformed target video. 2.The method according to claim 1, wherein the size transformationoperation comprises an enlarging operation, the preset anchor point sizecomprises an original image size, and preset transformation informationcorresponding to the original image size indicates a full-screen imagesize, an operation type corresponding to the original image size is theenlarging operation; and the determining, in response to determiningthat the current size is the preset anchor point size and in response tothe operation type of the size transformation operation corresponding tothe preset anchor point size, the preset transformation informationcorresponding to the preset anchor point size as the targettransformation information comprises: determining, in response todetermining that the current size is the original image size and inresponse to detecting the enlarging operation, the preset transformationinformation indicating the full-screen image size as the targettransformation information; and/or the size transformation operationcomprises a narrowing operation, the preset anchor point size comprisesa full-screen image size, and preset transformation informationcorresponding to the full-screen image size indicates an original imagesize, an operation type corresponding to the full-screen image size isthe narrowing operation; and the determining, in response to determiningthat the current size is the preset anchor point size and in response tothe operation type of the size transformation operation corresponding tothe preset anchor point size, the preset transformation informationcorresponding to the preset anchor point size as the targettransformation information comprises: determining, in response todetermining that the current size is the full-screen image size and inresponse to detecting the narrowing operation, the preset transformationinformation indicating the original image size as the targettransformation information.
 3. The method according to claim 1, whereinthe type of the size transformation operation is determined based on aratio of a real-time size of the target video when the sizetransformation operation is released to the current size of the targetvideo.
 4. The method according to claim 3, wherein before the sizetransformation operation is released, a size of the target video istransformed in real time based on the transformation informationindicated by the size transformation operation.
 5. The method accordingto claim 1, further comprising: displaying, in response to determiningthat a size of the transformed target video is not an original imagesize, a restore control, wherein the restore control is used fortransforming the target video to the original image size.
 6. The methodaccording to claim 1, further comprising: moving, in response todetecting a predefined moving operation and in response to determiningthat the current size of the target video is greater than a size of thevideo play area, the target video in the video play area.
 7. The methodaccording to claim 1, further comprising: detecting, in response to theend of the size transformation operation and/or a moving operation,whether the target video is moved out of the video play area; andcorrecting, in response to determining that the target video is movedout of the video play area, a video picture in the video play area. 8.The method according to claim 1, further comprising: packaging a firstlayer into a second layer, wherein a layer corresponding to a player isthe first layer, and a target video in the second layer has the sameplay progress as a target video in the first layer, the target video inthe second layer is used for transformation based on the sizetransformation operation and/or a moving operation.
 9. The methodaccording to claim 8, wherein the target video in the second layer istransformed by: determining a transformation coefficient based onoperation position information of the size transformation operationand/or the moving operation, wherein the transformation coefficientcomprises at least one of size transformation information and a movingcoefficient; and transforming the target video in the second layer basedon the transformation coefficient.
 10. The method according to claim 9,further comprising: acquiring a target video picture that matches thevideo play area from the target video in the second layer; and playingthe target video picture that matches the video play area in the videoplay area.
 11. The method according to claim 1, wherein the determiningtarget transformation information of a target video based on whether acurrent size of the target video is a preset anchor point sizecomprises: determining the target transformation information based on anoperation type of the size transformation operation and the presetanchor point size.
 12. The method according to claim 11, wherein thedetermining the target transformation information based on an operationtype of the size transformation operation and the preset anchor pointsize comprises: using a first target transformation information inresponse to the operation type and the preset anchor point sizesatisfying a first preset relationship, wherein the first targettransformation information indicates that the size of the target videois switched between different preset anchor point sizes; and usingsecond target transformation information in response to the operationtype and the preset anchor point size satisfying a second presetrelationship, wherein the second target transformation informationcorresponds to a free-scaling mode.
 13. The method according to claim12, wherein the first preset relationship indicates that the operationtype, the current size of the target video and the preset anchor pointsize satisfy a preset first correspondence or do not satisfy a presetsecond correspondence; and/or the second preset relationship indicatesthat the operation type, the current size of the target video and thepreset anchor point size do not satisfy the preset first correspondenceor satisfy the preset second correspondence.
 14. The method according toclaim 12, wherein the first preset relationship comprises a case thatthe current size of the target video is an original image size, theoperation type is an enlarging operation, and the target transformationinformation comprises transforming the target video to a full-screenimage size; and/or, a case that the current size of the target video isthe full-screen image size, the operation type is a narrowing operation,and the target transformation information comprises transforming thetarget video to the original image size; and/or the second presetrelationship comprises a case that the current size of the target videois the original image size, the operation type is the narrowingoperation, and the target transformation information comprises freelyscaling the target video based on operation information; and/or, a casethat the current size of the target video is the full-screen image size,the operation type is the enlarging operation, and the targettransformation information comprises freely scaling the target videobased on the operation information.
 15. A video transformation method,comprising: packaging a first layer into a second layer, wherein atarget video in the second layer has the same play progress as a targetvideo in the first layer, and a layer corresponding to a player is thefirst layer; and transforming the target video in the second layer basedon target transformation information determined in response to detectinga size transformation operation, wherein determining the targettransformation information comprises determining the targettransformation information based on whether a current size of the targetvideo is a preset anchor point size, wherein the preset anchor pointsize corresponds to an operation type and preset transformationinformation, and wherein the determining the target transformationinformation based on whether a current size of the target video is apreset anchor point size further comprises: in response to determiningthat the current size of the target video is the preset anchor pointsize and determining that a type of the size transformation operation isthe operation type corresponding to the preset anchor point size,identifying the preset transformation information corresponding to thepreset anchor point size as the target transformation information, andin response to determining that the current size of the target video isnot the preset anchor point size or determining that the type of thesize transformation operation is not the operation type corresponding tothe preset anchor point size, entering a free-scaling mode in which thetarget transformation information is determined based on transformationinformation indicated by the size transformation operation and thecurrent size of the target video.
 16. The method according to claim 15,wherein the layer corresponding to the player is the first layer toisolate video play from video transformation.
 17. An electronic devicecomprising: one or more processors; a storage apparatus storing one ormore programs, the one or more programs, when executed by the one ormore processors, causing the one or more processors to: determine, inresponse to detecting a size transformation operation, targettransformation information of a target video based on whether a currentsize of the target video is a preset anchor point size, wherein thetarget video is a video played in a video play area, wherein the presetanchor point size corresponds to an operation type and presettransformation information, and wherein determining, in response todetecting a size transformation operation, target transformationinformation of a target video based on whether a current size of thetarget video is a preset anchor point size further comprises: inresponse to determining that the current size of the target video is thepreset anchor point size and determining that a type of the sizetransformation operation is the operation type corresponding to thepreset anchor point size, identifying the preset transformationinformation corresponding to the preset anchor point size as the targettransformation information, and in response to determining that thecurrent size of the target video is not the preset anchor point size ordetermining that the type of the size transformation operation is notthe operation type corresponding to the preset anchor point size,entering a free-scaling mode in which the target transformationinformation is determined based on transformation information indicatedby the size transformation operation and the current size of the targetvideo; and transform the target video based on the target transformationinformation, and playing the transformed target video.
 18. Anon-transitory computer-readable medium storing a computer program, thecomputer program, when executed by a processor, causing the processor toperform the method according to claim 1.